<!DOCTYPE html>
<html lang="en">
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Document</title>
  <link rel="stylesheet" href="./style.css" type="text/css" />
  <body>
    <div class="wrapper" id="block"></div>
    <script>
      const blockEl = document.getElementById("block");
      const count = 20;
      blockEl.style.setProperty("--count", count);
      for (let i = 0; i < count; i++) {
        const div = document.createElement("div");
        div.classList.add(`block_${i + 1}`);
        blockEl.appendChild(div);
      }
    </script>
  </body>
</html>
